<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入Axios -->
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
</head>
<body>
  <script type="text/javascript">
    axios.get('https://api.github.com/users')
      .then(function (response) {
        console.log(response.data);
      })
      .catch(function (error){
        console.log(error)
      })
  </script>
</body>
</html>